package com.hkemmm.control;

import com.hkemmm.bean.UserInfo;
import com.hkemmm.model.UserModel;
import com.hkemmm.utils.MyUtils;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "ModifyJumpServlet", value = "/modifyJump")
public class ModifyJumpServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String strID = request.getParameter("userID");


        UserInfo u= MyUtils.getInstence(UserModel.class).queryUserInfoByID(strID);
        request.getSession().setAttribute("userInfo",u);

        request.getRequestDispatcher("WEB-INF/viewpages/userInfoModify.jsp").forward(request, response);
    }
}
